//
//  YsCloudFileTransmissionVC.m
//  YsCloudFileManageSDK
//
//  Created by 宋宏康 on 2020/3/2.
//

#import "YsCloudFileTransmissionVC.h"
#import <YYKit/YYKit.h>

@interface YsCloudFileTransmissionVC ()
@property (nonatomic, strong) JXCategoryTitleView *myCategoryView;
@end

@implementation YsCloudFileTransmissionVC

- (void)initSubviews
{
    [super initSubviews];
    if (self.titles == nil) {
        self.titles = @[@"下载列表", @"上传列表"];
    }
    JXCategoryTitleView *titleCategoryView = (JXCategoryTitleView *)self.categoryView;
    titleCategoryView.titleColorGradientEnabled = YES;
    JXCategoryIndicatorLineView *lineView = [[JXCategoryIndicatorLineView alloc] init];
    lineView.indicatorWidth = 20;
    lineView.indicatorColor = [UIColor colorWithHexString:@"367bd6"];
    titleCategoryView.indicators = @[lineView];
    self.myCategoryView.titles = self.titles;
    self.myCategoryView.titleSelectedColor = [UIColor colorWithHexString:@"367bd6"];
}

- (void)setupNavigationItems
{
    [super setupNavigationItems];
    
    self.title = @"传输";
}

- (void)setupToolbarItems
{
    [super setupToolbarItems];
}


- (JXCategoryTitleView *)myCategoryView {
    return (JXCategoryTitleView *)self.categoryView;
}

- (JXCategoryBaseView *)preferredCategoryView {
    return [[JXCategoryTitleView alloc] init];
}
@end
